package br.edu.univas.jobmanager.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;


public class ConnectionManager {

		private static EntityManagerFactory _factory = null;
		
		static {
			_factory = Persistence.createEntityManagerFactory("maindatabase");
		}
		
		public static EntityManager createEntityManager() {
			return _factory.createEntityManager();
		}
}

